<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath() %>/statics/css/style.css" />

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<script>
	function jump(){
		window.location.href="<%=request.getContextPath()%>/user/register.html";
	}
</script>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'Login.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  </head>
  <body>
  	<div id="header" class="wrap">
	<div id="logo">国子监</div>
	<div id="navbar">
		<form method="get" name="search" action="">
			搜索：<input class="input-text" type="text" name="keywords" /><input class="input-btn" type="submit" name="submit" value="" />
		</form>
	</div>
</div>
<div id="login">
	<h2>用户登陆</h2>
	<form method="post" action="<%=request.getContextPath()%>/user/dologin.html">
		<dl>
			<dt>用户名：</dt>
			<dd><input class="input-text" type="text" name="userCode" /><span>${error }</span></dd>
			<dt>密　码：</dt>
			<dd><input class="input-text" type="password" name="userPassword" /></dd>
			<dt></dt>
			<dd class="button"><input class="input-btn" type="submit" name="submit" value="" /><input class="input-reg" type="button" name="register" value="" onclick=jump() /></dd>
		</dl>
	</form>
</div>
<div id="footer" class="wrap">
	国子监 &copy; 版权所有
</div>
  </body>
</html>
